export function efficacy(val) {
    var msgcess = ''
    val.forEach(item => {
        if (item.orderNum == '') {
            return msgcess = '序号不能为空'
        } else if (item.title == null) {
            return msgcess = '试题内容不得为空'
        } else if (item.factor == null) {
            return msgcess = '试题类型不得为空'
        } else {
            item.selectionItemEntityList.forEach(items => {
                if (items.optionText == null) {
                    return msgcess = '请上传试题答案'
                }
            })

        }
    });
    return msgcess
}
export function classRequired(val) {
    var msgcess = ''
    val.forEach(item => {
        if (item.orderNum == '') {
            return msgcess = '序号不能为空'
        } else if (item.name == null) {
            return msgcess = '班级名称不得为空'
        } else if (item.teacherId == null) {
            return msgcess = '班主任不得为空'
        }
    });
    return msgcess
}

export function StempLate(val) {
    var msgcess = ''
    if (val.length !== 0) {
        val.forEach(item => {
            if (item.id == null) {
                return msgcess = '请选择试题'
            } else if (item.orderNum == "") {
                return msgcess = '请查看试题序号'
            }
        })
    } else {
        return msgcess = '请选择试题'
    }
    return msgcess
}
export function evaluationModel(val) {
    var msgcess = ''
    val.forEach(item => {

        if (!item.startScore) {
            return msgcess = '开始分值不能为空'
        } else if (!item.endScore) {
            return msgcess = '结束分值不能为空'
        } else if (!item.degree) {
            return msgcess = '标签不能为空'
        } else if (!item.description) {
            return msgcess = '描述不得为空'
        }
    });
    return msgcess
}
